<!--{if $space[uid]}-->
<div class="uhd cl">
	<!--{if $do != 'profile'}--><!--{eval space_merge($space, 'field_forum');}--><!--{/if}-->
	<!--{if CURMODULE == 'follow'}-->
		<!--{subtemplate home/follow_user_header}-->
	<!--{else}-->
		<!--{eval space_merge($space, 'count');}-->
		<div class="mtn ctrl flw_hd">
			<!--{if helper_access::check_module('follow')}-->
			<div class="tns">
				<table cellspacing="0" cellpadding="0">
					<tr>
						<th>
							<span><a href="home.php?mod=follow&uid=$uid&do=view">{lang follow}</a></span>
							<p><a href="home.php?mod=follow&uid=$uid&do=view">$space['feeds']</a></p>
						</th>
						<th>
							<span><a href="home.php?mod=follow&do=following&uid=$uid">{lang follow_add}</a></span>
							<p><a href="home.php?mod=follow&do=following&uid=$uid">$space['following']</a></p>
						</th>
						<td>
							<span><a href="home.php?mod=follow&do=follower&uid=$uid">{lang follow_follower}</a></span>
							<p><a href="home.php?mod=follow&do=follower&uid=$uid" id="followernum_$uid">$space['follower']</a></p>
						</td>
					</tr>
				</table>
			</div>
			<!--{/if}-->
			<!--{if !$space[self]}-->
				<div class="mtw ptn o cl">
					<!--{if helper_access::check_module('follow')}-->
						<!--{if !$follow}-->
							<a href="home.php?mod=spacecp&ac=follow&op=add&hash={FORMHASH}&fuid=$space[uid]" id="followmod" class="flw_btn_fo z" onclick="showWindow(this.id, this.href, 'get', 0);">{lang follow_add}</a>
						<!--{else}-->
							<a href="home.php?mod=spacecp&ac=follow&op=del&fuid=$space[uid]" id="followmod" class="z xi2" onclick="showWindow(this.id, this.href, 'get', 0);">{lang follow_del}</a>
						<!--{/if}-->
						<script type="text/javascript">
						function succeedhandle_followmod(url, msg, values) {
							var fObj = $('followmod');
							if(values['type'] == 'add') {
								fObj.innerHTML = '{lang follow_del}';
								fObj.href = 'home.php?mod=spacecp&ac=follow&op=del&fuid='+values['fuid'];
								fObj.className = 'z xi2';
							} else if(values['type'] == 'del') {
								fObj.innerHTML = '{lang follow_add}';
								fObj.href = 'home.php?mod=spacecp&ac=follow&op=add&hash={FORMHASH}&fuid='+values['fuid'];
								fObj.className = 'flw_btn_fo z';
							}
						}
						</script>
					<!--{/if}-->
					<a href="home.php?mod=spacecp&ac=pm&op=showmsg&handlekey=showmsg_$space[uid]&touid=$space[uid]&pmid=0&daterange=2" id="a_sendpm_$space[uid]" class="z pm2" onclick="showWindow('showMsgBox', this.href, 'get', 0)" title="{lang send_pm}">{$lang['qing_pm']}</a>
				</div>
			<!--{/if}-->
		</div>
	<!--{/if}-->
	<div class="d cl">
		<div class="avt"><a href="home.php?mod=space&uid=$space[uid]"><!--{avatar($space['uid'], 'middle')}--></a></div>
		<h2 class="mt">
			{$space[username]}
			<!--{if isset($flag[$_G['uid']])}-->
			<span class="xs1 xg1 xw0">
				<span id="followbkame_{$uid}"><!--{if $flag[$_G['uid']]['bkname']}-->$flag[$_G['uid']]['bkname']<!--{/if}--></span>
				<a href="home.php?mod=spacecp&ac=follow&op=bkname&fuid=$uid&handlekey=followbkame_$uid" id="fbkname_{$uid}" onclick="showWindow('followbkame_{$uid}', this.href, 'get', 0);"><!--{if $flag[$_G['uid']]['bkname']}-->[{lang follow_mod_bkname}]<!--{else}-->[{lang follow_add_bkname}]<!--{/if}--></a>
			</span>
			<!--{/if}-->
		</h2>
		<table><tr><td><p class="xg1 mbm">$space['sightml']</p></td></tr></table>
		<!--{if checkperm('allowbanuser') || checkperm('allowedituser') || $_G[adminid] == 1}-->
			<p>
				<!--{if checkperm('allowbanuser') || checkperm('allowedituser')}-->
					<!--{if checkperm('allowbanuser')}-->
					<a href="{if $_G[adminid] == 1}admin.php?action=members&operation=ban&username=$encodeusername&frames=yes{else}forum.php?mod=modcp&action=member&op=ban&uid=$space[uid]{/if}" id="usermanageli" onmouseover="showMenu(this.id)" class="showmenu" target="_blank">{lang member_manage}</a>
					<!--{else}-->
					<a href="{if $_G[adminid] == 1}admin.php?action=members&operation=search&username=$encodeusername&submit=yes&frames=yes{else}forum.php?mod=modcp&action=member&op=edit&uid=$space[uid]{/if}" id="usermanageli" onmouseover="showMenu(this.id)" class="showmenu" target="_blank">{lang member_manage}</a>
					<!--{/if}-->
				<!--{/if}-->

				<!--{if $_G[adminid] == 1}-->
					<a href="forum.php?mod=modcp&action=thread&op=post&do=search&searchsubmit=1&users=$encodeusername" id="umanageli" onmouseover="showMenu(this.id)" class="showmenu">{lang content_manage}</a>
				<!--{/if}-->
			</p>
		<!--{/if}-->
	</div>

</div>

<!--{if checkperm('allowbanuser') || checkperm('allowedituser')}-->
	<ul id="usermanageli_menu" class="p_pop" style="width: 80px; display:none;">
		<!--{if checkperm('allowbanuser')}-->
			<li><a href="{if $_G[adminid] == 1}admin.php?action=members&operation=ban&username=$encodeusername&frames=yes{else}forum.php?mod=modcp&action=member&op=ban&uid=$space[uid]{/if}" target="_blank">{lang user_ban}</a></li>
		<!--{/if}-->
		<!--{if checkperm('allowedituser')}-->
			<li><a href="{if $_G[adminid] == 1}admin.php?action=members&operation=search&username=$encodeusername&submit=yes&frames=yes{else}forum.php?mod=modcp&action=member&op=edit&uid=$space[uid]{/if}" target="_blank">{lang user_edit}</a></li>
		<!--{/if}-->
	</ul>
<!--{/if}-->
<!--{if $_G['adminid'] == 1}-->
	<ul id="umanageli_menu" class="p_pop" style="width: 80px; display:none;">
		<li><a href="forum.php?mod=modcp&action=thread&op=post&searchsubmit=1&do=search&users=$encodeusername" target="_blank">{lang manage_post}</a></li>
		<!--{if helper_access::check_module('doing')}-->
			<li><a href="admin.php?action=doing&searchsubmit=1&detail=1&search=true&fromumanage=1&users=$encodeusername" target="_blank">{lang manage_doing}</a></li>
		<!--{/if}-->
		<!--{if helper_access::check_module('blog')}-->
			<li><a href="admin.php?action=blog&searchsubmit=1&detail=1&search=true&fromumanage=1&uid=$space[uid]" target="_blank">{lang manage_blog}</a></li>
		<!--{/if}-->
		<!--{if helper_access::check_module('feed')}-->
			<li><a href="admin.php?action=feed&searchsubmit=1&detail=1&fromumanage=1&uid=$space[uid]" target="_blank">{lang manage_feed}</a></li>
		<!--{/if}-->
		<!--{if helper_access::check_module('album')}-->
			<li><a href="admin.php?action=album&searchsubmit=1&detail=1&search=true&fromumanage=1&uid=$space[uid]" target="_blank">{lang manage_album}</a></li>
			<li><a href="admin.php?action=pic&searchsubmit=1&detail=1&search=true&fromumanage=1&users=$encodeusername" target="_blank">{lang manage_pic}</a></li>
		<!--{/if}-->
		<!--{if helper_access::check_module('wall')}-->
			<li><a href="admin.php?action=comment&searchsubmit=1&detail=1&fromumanage=1&authorid=$space[uid]" target="_blank">{lang manage_comment}</a></li>
		<!--{/if}-->
		<!--{if helper_access::check_module('share')}-->
			<li><a href="admin.php?action=share&searchsubmit=1&detail=1&search=true&fromumanage=1&uid=$space[uid]" target="_blank">{lang manage_share}</a></li>
		<!--{/if}-->
		<!--{if helper_access::check_module('group')}-->
			<li><a href="admin.php?action=threads&operation=group&searchsubmit=1&detail=1&search=true&fromumanage=1&users=$encodeusername" target="_blank">{lang manage_group_threads}</a></li>
			<li><a href="admin.php?action=prune&searchsubmit=1&detail=1&operation=group&fromumanage=1&users=$encodeusername" target="_blank">{lang manage_group_prune}</a></li>
		<!--{/if}-->
	</ul>
<!--{/if}-->

<!--{hook/space_menu_extra}-->
<ul class="tb tb_w cl">
	<!--{if helper_access::check_module('follow')}-->
	<li{if CURMODULE == 'follow'} class="a"{/if}><a href="home.php?mod=follow&uid=$space[uid]&do=view&from=space">{lang follow}</a></li>
	<!--{/if}-->
	<li{if $do=='thread'} class="a"{/if}><a href="home.php?mod=space&uid=$space[uid]&do=thread&view=me&from=space">{lang topic}</a></li>
	<!--{if helper_access::check_module('blog')}-->
	<li{if $do=='blog'} class="a"{/if}><a href="home.php?mod=space&uid=$space[uid]&do=blog&view=me&from=space">{lang blog}</a></li>
	<!--{/if}-->
	<!--{if helper_access::check_module('album')}-->
	<li{if $do=='album'} class="a"{/if}><a href="home.php?mod=space&uid=$space[uid]&do=album&view=me&from=space">{lang album}</a></li>
	<!--{/if}-->
	<!--{if helper_access::check_module('doing')}-->
	<li{if $do=='doing'} class="a"{/if}><a href="home.php?mod=space&uid=$space[uid]&do=doing&view=me&from=space">{lang doing}</a></li>
	<!--{/if}-->
	<!--{if helper_access::check_module('home')}-->
	<li{if $do=='home'} class="a"{/if}><a href="home.php?mod=space&uid=$space[uid]&do=home&view=me&from=space">{lang feed}</a></li>
	<!--{/if}-->
	<!--{if helper_access::check_module('share')}-->
	<li{if $do=='share'} class="a"{/if}><a href="home.php?mod=space&uid=$space[uid]&do=share&view=me&from=space">{lang share}</a></li>
	<!--{/if}-->
	<!--{if helper_access::check_module('wall')}-->
	<li{if $do=='wall'} class="a"{/if}><a href="home.php?mod=space&uid=$space[uid]&do=wall&from=space">{lang message}</a></li>
	<!--{/if}-->
	<li{if $do=='profile'} class="a"{/if}><a href="home.php?mod=space&uid=$space[uid]&do=profile&from=space">{lang memcp_profile}</a></li>
</ul>

<!--{/if}-->